load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "golint_lib",
    srcs = [
        "golint.go",
        "import.go",
        "importcomment.go",
    ],
    importmap = "github.com/cockroachdb/cockroach/vendor/golang.org/x/lint/golint",
    importpath = "golang.org/x/lint/golint",
    visibility = ["//visibility:private"],
    deps = ["//vendor/golang.org/x/lint"],
)

go_binary(
    name = "golint",
    embed = [":golint_lib"],
    visibility = ["//visibility:public"],
)
